package by.grsu.perovskij.tools;

import java.util.Calendar;

public class TimeHelper {
	public static String getReadableDate(Calendar c){
		int minute = c.get(Calendar.MINUTE);
		int hour = c.get(Calendar.HOUR_OF_DAY);
		int day = c.get(Calendar.DAY_OF_MONTH);
		int month = c.get(Calendar.MONTH);
		int year = c.get(Calendar.YEAR);

		return String.format("Date=%1$d.%2$d.%3$d Time=%4$d:%5$d", day, month,
				year, hour, minute);
	}
}
